<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:72:"D:\phpStudy\WWW\auth/application/web\view\union_store\union_erweima.html";i:1496201803;}*/ ?>
 
<link rel="shortcut icon" href="favicon.ico">
<link href="__CSS__/bootstrap.min.css" rel="stylesheet">
<link href="__CSS__/font-awesome.min.css" rel="stylesheet">
<link href="__CSS__/animate.min.css" rel="stylesheet">
<link href="__CSS__/style.min.css" rel="stylesheet">
<link href="__CSS__/admin.css" rel="stylesheet">
<div class="ibox float-e-margins">
	<div class="ibox-content form-horizontal">
		<!--商品栏目设置-->
		<div class="form-group" style="width:100%;text-align: center;">
			<label class="col-sm-3 control-label" style="width:100%;text-align: center;">扫一扫即可跳转到联盟店铺首页</label>
			<div class="input-group col-sm-4" style="width:100%;text-align: center;">
				<img src="<?php echo $code_url; ?>" width="180px"/>
			</div>
				
		</div>
		<div class="form-group" style="width:100%;text-align: center;">
			<label class="col-sm-3 control-label" style="width:100%;text-align: center;">
				<input type="text"  name="" class="form-control" style="width:100%;text-align: center;" value="<?php echo $url; ?>" readonly/>
			</label>
			
		</div>
		
		<!--<div class="form-group">
			<div class="col-sm-4 col-sm-offset-8" style="text-align: right;">
				<button class="btn btn-info"><i class="fa fa-save"></i> 保存</button>&nbsp;&nbsp;
				<span onclick="wclose()"><a class="btn btn-danger"><i class="fa fa-arrow-left"></i> 关闭 </a></span>
			</div>
		</div>-->
	</div>
</div>
 
<script src="__JS__/jquery.min.js"></script>
<script src="__JS__/bootstrap.min.js"></script>
<script src="__JS__/jquery.metisMenu.js"></script>
<script src="__JS__/jquery.slimscroll.min.js"></script>
<script src="__LIB__/layer/layer.js"></script>
<script>
	function wclose(){
    	var index = parent.layer.getFrameIndex(window.name); //获取窗口索引  
        parent.layer.close(index);  
	}
	
	$(".btn-info").click(function(){
    	var grab_name = $("#grab_name").val();
    	$.ajax({
            type:"POST",
            url:"savegrab",
			data:{id:id,grab_name:$("#grab_name").val(),grabneed_money:$("#grabneed_money").val(),need_score:$("#need_score").val(),is_grab:$('#grab_status input[name="is_grab"]:checked').val(),grab_num:$("#grab_num").val()},
            success:function(data){
				layer.msg(data.msg, {
				  icon: 1,
				  time: 1000 //2秒关闭（如果不配置，默认是3秒）
				}, function(){
					if(data.code == 200) {
						parent.layer.closeAll();
   						parent.window.location.reload();
   					}
				}); 
            }
		});		
    });
</script>
